
CREATED_ON	= 02/14/11
OSNAME		= linux
OSVERS		= 2.4.21-47.el
ARCHNAME	= x86_64-linux
ARCHNAME32	= i586-linux

AWK	= awk
BCP	= /srv/epages/eproot/Sybase/OCS-15_0/bin/bcp
CAT	= $(PERL) -MExtUtils::Command -e cat
CD	= cd
CHMOD	= chmod
CHOWN	= chown
COPY	= cp -rf
COPY_DIR	= $(PERL) -MDE_EPAGES::Core::API::Command -e copy_dir
COPY_FILE	= $(PERL) -MDE_EPAGES::Core::API::Command -e copy_file
CP	= $(PERL) -MExtUtils::Command -e cp
DEL	= $(PERL) -MExtUtils::Command -e rm_f
ECHONL	= echo
EMPTY_DIR	= $(PERL) -MDE_EPAGES::Core::API::Command -e empty_dir
EPAGES	= /srv/epages/eproot
EPAGES_CARTRIDGES	= /srv/epages/eproot/Cartridges
EPAGES_CONFIG	= /srv/epages/eproot/Shared/Config
EPAGES_LOG	= /srv/epages/eproot/Shared/Log
EPAGES_PERL	= /srv/epages/eproot/Perl
EPAGES_SHARED	= /srv/epages/eproot/Shared
EPAGES_STATIC	= /srv/epages/eproot/Shared/Static
EPAGES_STORES	= /srv/epages/eproot/Shared/Stores
EPAGES_WEBROOT	= /srv/epages/eproot/Shared/WebRoot
EQTIME	= $(PERL) -MExtUtils::Command -e eqtime
ETC_DIR	= /srv/epages/etc
ETC_INITD	= /etc/init.d/\$(EPAGES_PROJECT)
GTAR	= tar
GZIP_EXE	= gzip
HTTPD_ROOT	= /srv/epages/eproot/Apache
ISQL	= /srv/epages/eproot/Sybase/OCS-15_0/bin/isql
MAKEDIR	= $(CURDIR)
MKDIR	= $(PERL) -MExtUtils::Command -e mkpath
MKPATH	= $(PERL) -MExtUtils::Command -e mkpath
MOVE	= $(PERL) -MExtUtils::Command -e mv
MV	= $(PERL) -MExtUtils::Command -e mv
NUL	= /dev/null
PERL	= /srv/epages/eproot/Perl/bin/perl
RMDIR	= $(PERL) -MDE_EPAGES::Core::API::Command -e delete_dir
SCROOT	= /srv/epages/eproot/Sybase/shared/sybcentral600
SEP_ROW	= '~~~\n'
SHELL	= /bin/ksh

SU_EXE	= runuser
SYBASE	= /srv/epages/eproot/Sybase
SYBASE_ASE_LOG	= /srv/epages/eproot/Sybase/ASE-15_0/init/logs
SYBASE_JRE	= /srv/epages/eproot/Sybase/shared/sybcentral600/jre
SYBROOT	= /srv/epages/eproot/Sybase
SYSAM_BIN	= /srv/epages/eproot/Sybase/SYSAM-2_0/bin
TAR	= tar
TEST	= $(PERL) -MDE_EPAGES::Core::API::Command=test -e test
TEST_F	= $(PERL) -MExtUtils::Command -e test_f
TEXT2DOS	= $(PERL) $(EPAGES_CARTRIDGES)/DE_EPAGES/Core/Scripts/Text2Dos.pl
TEXT2UNIX	= $(PERL) $(EPAGES_CARTRIDGES)/DE_EPAGES/Core/Scripts/Text2Unix.pl
TOUCH	= $(PERL) -MExtUtils::Command -e touch
.EXPORT_ALL_VARIABLES:

COMPANY     = Options
CARTRIDGE   = Attributes
MODELS      = "Models/Attributes.pdm"
CVS_BRANCH  = main
STORE       =
RECURSIVE   =
EPAGES_PASSWORD = $(PASSWORD)
EPAGES_TESTSITE = $(STORE)
BUILDFILE=$(DE_EPAGES)/CodeGenerator/Templates/epages/BuildCentralDAL.xml

CVS_CARTRIDGESPATH =RND/epages/epages5/AllOS/Cartridges
CVS_PATH        = $(CVS_CARTRIDGESPATH)/$(COMPANY)/$(CARTRIDGE)
DE_EPAGES   = ../../DE_EPAGES
CARTRIDGES  = $(COMPANY)::$(CARTRIDGE)
COMPANY_CARTRIDGE = COMPANY=$(COMPANY) CARTRIDGE=$(CARTRIDGE) DE_EPAGES="$(DE_EPAGES)"
PRGS = PERL="$(PERL)" MKDIR="$(MKDIR)" RMDIR="$(RMDIR)"

MAKE_GENERATE   = $(MAKE) -f $(DE_EPAGES)/CodeGenerator/Scripts/CodeGenerator.mak $(COMPANY_CARTRIDGE) MODELS=$(MODELS) CVS_BRANCH=$(CVS_BRANCH) CVS_PATH=$(CVS_PATH) BUILDFILE=$(BUILDFILE) $(PRGS)
MAKE_CORE   = $(MAKE) -f $(DE_EPAGES)/Core/Scripts/Core.mak $(COMPANY_CARTRIDGE) $(PRGS)
MAKE_DOC    = $(MAKE) -f $(DE_EPAGES)/SourceDoc/Scripts/SourceDoc.mak $(COMPANY_CARTRIDGE) $(PRGS)
MAKE_INSTALL    = $(MAKE) -f $(DE_EPAGES)/Installer/Scripts/Installer.mak STORE=$(STORE) CARTRIDGES=$(CARTRIDGES) DE_EPAGES="$(DE_EPAGES)" OLDRELEASE=$(OLDRELEASE) NEWRELEASE=$(NEWRELEASE) CVS_CARTRIDGESPATH=$(CVS_CARTRIDGESPATH) $(PRGS) RECURSIVE=$(RECURSIVE)
MAKE_REGISTER   = $(MAKE) -f $(DE_EPAGES)/ShopConfiguration/Scripts/Register.mak CARTRIDGES=$(CARTRIDGES) DE_EPAGES="$(DE_EPAGES)" $(PRGS)

makefile: Makefile.PL
	$(PERL) Makefile.PL
	$(PERL) -e "print /"Please restart '$(MAKE)' again makefile was updated./n/";exit 1;"

clean: makefile
	-$(DEL) .*#* *.pdb
	-$(DEL) makefile
	-$(RMDIR) Generated

generate generate_merge generate_update resolve_conficts: makefile
	$(MAKE_GENERATE) $@

install uninstall create_patch test_patch patch cpan: makefile
	$(MAKE_INSTALL) $@

register unregister: makefile
	$(MAKE_REGISTER) $@

sourcedoc: makefile
	$(MAKE_DOC) sourcedoc

test: makefile
	$(MAKE_CORE) test
#
#   END
#
